﻿using JNPF.Basics.Models;
using JNPF.Utils;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace JNPF.Basics.Logic
{
    /// <summary>
    /// 工作日志
    /// 版 本：V3.0.0
    /// 版 权：引迈信息技术有限公司（https://www.jnpfsoft.com）
    /// 作 者：JNPF开发平台组
    /// 日 期：2019-12-17 
    /// </summary>
    internal interface WorkLogIService
    {
        /// <summary>
        /// 列表(我发出的)
        /// </summary>
        /// <param name="input">请求参数</param>
        /// <param name="userId">用户主键</param>
        /// <returns></returns>
        Task<PageResult<WorkLogEntity>> GetSendList(PageInput input, string userId);
        /// <summary>
        /// 列表（我收到的）
        /// </summary>
        /// <param name="input">请求参数</param>
        /// <param name="userId">用户主键</param>
        /// <returns></returns>
        Task<PageResult<WorkLogEntity>> GetReceiveList(PageInput input, string userId);
        /// <summary>
        /// 信息
        /// </summary>
        /// <param name="id">主键值</param>
        /// <returns></returns>
        Task<WorkLogEntity> GetInfo(string id);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="entity">实体对象</param>
        /// <returns></returns>
        Task Delete(WorkLogEntity entity);
        /// <summary>
        /// 创建
        /// </summary>
        /// <param name="entity">实体对象</param>
        /// <param name="workLogShareList">共享人实体</param>
        /// <returns></returns
        Task Create(WorkLogEntity entity, List<WorkLogShareEntity> workLogShareList);
        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="entity">实体对象</param>
        /// <param name="workLogShareList">共享人实体</param>
        /// <returns></returns>
        Task Update(WorkLogEntity entity, List<WorkLogShareEntity> workLogShareList);
    }
}